Skip to content

Expose error details with a class#257

Merged
anuraaga merged 1 commit into
connectrpc:mainfrom
anuraaga:errordetail
Jun 1, 2026
Merged

Expose error details with a class#257
anuraaga merged 1 commit into
connectrpc:mainfrom
anuraaga:errordetail

Conversation

@anuraaga
Copy link
Copy Markdown
Collaborator

Currently we expose google.protobuf directly on ConnectError, which naturally doesn't lend itself well to swapping protobuf implementations. This wraps in ErrorDetail which is a similar design to connect-go. We'll still provide the value helper going forward to make it easy to convert to connect-python's default protobuf implementation, but accessing type_name and message_bytes directly will allow using another.

Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
@anuraaga anuraaga requested a review from a team May 29, 2026 04:40
@anuraaga anuraaga merged commit 1a45817 into connectrpc:main Jun 1, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants